<div style='max-height:500px;overflow:auto;min-width:580px;'>
<table class="table table-hover">
    <thead>
        <th class="pull-left">商家列表</th>
        <th class="pull-right">选取</th>
    </thead>
    <tbody>   
        {loop $merchants $row}
        <tr>
            <td class="pull-left" ><img src="{$row['logo']}" style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$row['storename']}</td>
            <td class="pull-right" ><a href="javascript:;" onclick='select_merchant({php echo json_encode($row);})' id="{$row['id']}">选择</a></td>
        </tr>
        {/loop}
        {if count($merchants)<=0}
        <tr> 
            <td colspan='4' align='center'>未找到</td>
        </tr>
        {/if}
    </tbody>
</table>
</div>